﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
//Import
using OnlineFloralDelivery.Components;

namespace OnlineFloralDelivery
{
    public partial class Bouquets : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
            {
                var occasionId = Request.QueryString["OccasionId"] != null ? Convert.ToInt32(Request.QueryString["OccasionId"]) : 0;
                dlBouquet.DataSource = BouquetQuery.GetBouquet(occasionId);
                dlBouquet.DataBind();
            }
        }
    }
}